home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / mint / mint104s.zoo / mint.src / proto.h < prev    next >
Text File  |  1993-03-08  |  16KB  |  385 lines

  1. /* bios.c */
  2. long ARGS_ON_STACK getmpb P_((void *ptr));
  3. long bconstat P_((int dev));
  4. long bconin P_((int dev));
  5. long bconout P_((int dev, int c));
  6. long ARGS_ON_STACK ubconstat P_((int dev));
  7. long ARGS_ON_STACK ubconin P_((int dev));
  8. long ARGS_ON_STACK ubconout P_((int dev, int c));
  9. long ARGS_ON_STACK rwabs P_((int rwflag, void *buffer, int number, int recno, int dev, long lrecno));
  10. long ARGS_ON_STACK setexc P_((int number, long vector));
  11. long ARGS_ON_STACK tickcal P_((void));
  12. long ARGS_ON_STACK getbpb P_((int dev));
  13. long bcostat P_((int dev));
  14. long ARGS_ON_STACK ubcostat P_((int dev));
  15. long ARGS_ON_STACK mediach P_((int dev));
  16. long ARGS_ON_STACK drvmap P_((void));
  17. long ARGS_ON_STACK kbshift P_((int mode));
  18. long ARGS_ON_STACK bflush P_((void));
  19. void init_bios P_((void));
  20. long ARGS_ON_STACK do_bconin P_((int dev));
  21. int checkkeys P_((void));
  22. void init_vectors P_((void));
  23. void unlink_vectors  P_((long start, long end));
  24.  
  25. /* xbios.c */
  26. long ARGS_ON_STACK supexec P_((Func funcptr, long a1, long a2, long a3, long a4, long a5));
  27. long ARGS_ON_STACK midiws P_((int, const char *));
  28. int mapin P_((int));
  29. long ARGS_ON_STACK uiorec P_((int));
  30. long ARGS_ON_STACK rsconf P_((int, int, int, int, int, int));
  31. long ARGS_ON_STACK bconmap P_((int));
  32. long ARGS_ON_STACK cursconf P_((int, int));
  33. void init_xbios P_((void));
  34.  
  35. /* console.c */
  36. long file_instat P_((FILEPTR *f));
  37. long file_outstat P_((FILEPTR *f));
  38. long file_getchar P_((FILEPTR *f, int mode));
  39. long file_putchar P_((FILEPTR *f, long c, int mode));
  40. long ARGS_ON_STACK c_conin P_((void));
  41. long ARGS_ON_STACK c_conout P_((int c));
  42. long ARGS_ON_STACK c_auxin P_((void));
  43. long ARGS_ON_STACK c_auxout P_((int c));
  44. long ARGS_ON_STACK c_prnout P_((int c));
  45. long ARGS_ON_STACK c_rawio P_((int c));
  46. long ARGS_ON_STACK c_rawcin P_((void));
  47. long ARGS_ON_STACK c_necin P_((void));
  48. long ARGS_ON_STACK c_conws P_((const char *str));
  49. long ARGS_ON_STACK c_conrs P_((char *buf));
  50. long ARGS_ON_STACK c_conis P_((void));
  51. long ARGS_ON_STACK c_conos P_((void));
  52. long ARGS_ON_STACK c_prnos P_((void));
  53. long ARGS_ON_STACK c_auxis P_((void));
  54. long ARGS_ON_STACK c_auxos P_((void));
  55. long ARGS_ON_STACK f_instat P_((int fh));
  56. long ARGS_ON_STACK f_outstat P_((int fh));
  57. long ARGS_ON_STACK f_getchar P_((int fh, int mode));
  58. long ARGS_ON_STACK f_putchar P_((int fh, long c, int mode));
  59.  
  60. /* dos.c */
  61. long ARGS_ON_STACK s_version P_((void));
  62. long ARGS_ON_STACK s_uper P_((long new_ssp));
  63. long ARGS_ON_STACK t_getdate P_((void));
  64. long ARGS_ON_STACK t_setdate P_((int date));
  65. long ARGS_ON_STACK t_gettime P_((void));
  66. long ARGS_ON_STACK t_settime P_((int time));
  67. long ARGS_ON_STACK s_yield P_((void));
  68. long ARGS_ON_STACK p_renice P_((int pid, int delta));
  69. long ARGS_ON_STACK p_nice P_((int delta));
  70. long ARGS_ON_STACK p_getpid P_((void));
  71. long ARGS_ON_STACK p_getppid P_((void));
  72. long ARGS_ON_STACK p_getpgrp P_((void));
  73. long ARGS_ON_STACK p_setpgrp P_((int pid, int newgrp));
  74. long ARGS_ON_STACK p_getuid P_((void));
  75. long ARGS_ON_STACK p_getgid P_((void));
  76. long ARGS_ON_STACK p_geteuid P_((void));
  77. long ARGS_ON_STACK p_getegid P_((void));
  78. long ARGS_ON_STACK p_setuid P_((int id));
  79. long ARGS_ON_STACK p_setgid P_((int id));
  80. long ARGS_ON_STACK p_usrval P_((long arg));
  81. long ARGS_ON_STACK p_umask P_((unsigned mode));
  82. long ARGS_ON_STACK p_domain P_((int arg));
  83. long ARGS_ON_STACK p_rusage P_((long *r));
  84. long ARGS_ON_STACK p_setlimit P_((int i, long v));
  85. long ARGS_ON_STACK p_pause P_((void));
  86. long ARGS_ON_STACK t_alarm P_((long x));
  87. long ARGS_ON_STACK s_ysconf P_((int which));
  88. long ARGS_ON_STACK s_alert P_((char *msg));
  89. void init_dos P_((void));
  90.  
  91. /* dosdir.c */
  92. long ARGS_ON_STACK d_setdrv P_((int d));
  93. long ARGS_ON_STACK d_getdrv P_((void));
  94. long ARGS_ON_STACK d_free P_((long *buf, int d));
  95. long ARGS_ON_STACK d_create P_((const char *path));
  96. long ARGS_ON_STACK d_delete P_((const char *path));
  97. long ARGS_ON_STACK d_setpath P_((const char *path));
  98. long ARGS_ON_STACK d_getpath P_((char *path, int drv));
  99. long ARGS_ON_STACK d_getcwd P_((char *path, int drv, int size));
  100. long ARGS_ON_STACK f_setdta P_((DTABUF *dta));
  101. long ARGS_ON_STACK f_getdta P_((void));
  102. long ARGS_ON_STACK f_sfirst P_((const char *path, int attrib));
  103. long ARGS_ON_STACK f_snext P_((void));
  104. long ARGS_ON_STACK f_attrib P_((const char *name, int rwflag, int attr));
  105. long ARGS_ON_STACK f_delete P_((const char *name));
  106. long ARGS_ON_STACK f_rename P_((int junk, const char *old, const char *new));
  107. long ARGS_ON_STACK d_pathconf P_((const char *name, int which));
  108. long ARGS_ON_STACK d_opendir P_((const char *path, int flags));
  109. long ARGS_ON_STACK d_readdir P_((int len, long handle, char *buf));
  110. long ARGS_ON_STACK d_rewind P_((long handle));
  111. long ARGS_ON_STACK d_closedir P_((long handle));
  112. long ARGS_ON_STACK f_xattr P_((int flag, const char *name, XATTR *xattr));
  113. long ARGS_ON_STACK f_link P_((const char *old, const char *new));
  114. long ARGS_ON_STACK f_symlink P_((const char *old, const char *new));
  115. long ARGS_ON_STACK f_readlink P_((int buflen, char *buf, const char *linkfile));
  116. long ARGS_ON_STACK d_cntl P_((int cmd, const char *name, long arg));
  117. long ARGS_ON_STACK f_chown P_((const char *name, int uid, int gid));
  118. long ARGS_ON_STACK f_chmod P_((const char *name, unsigned mode));
  119. long ARGS_ON_STACK d_lock P_((int mode, int drv));
  120.  
  121. /* dosfile.c */
  122. FILEPTR * do_open P_((const char *name, int mode, int attr, XATTR *x));
  123. long do_pclose P_((PROC *p, FILEPTR *f));
  124. long do_close P_((FILEPTR *f));
  125. long ARGS_ON_STACK f_open P_((const char *name, int mode));
  126. long ARGS_ON_STACK f_create P_((const char *name, int attrib));
  127. long ARGS_ON_STACK f_close P_((int fh));
  128. long ARGS_ON_STACK f_read P_((int fh, long count, char *buf));
  129. long ARGS_ON_STACK f_write P_((int fh, long count, const char *buf));
  130. long ARGS_ON_STACK f_seek P_((long place, int fh, int how));
  131. long ARGS_ON_STACK f_dup P_((int fh));
  132. long ARGS_ON_STACK f_force P_((int newh, int oldh));
  133. long ARGS_ON_STACK f_datime P_((short *timeptr, int fh, int rwflag));
  134. long ARGS_ON_STACK f_lock P_((int fh, int mode, long start, long length));
  135. long ARGS_ON_STACK f_pipe P_((short *usrh));
  136. long ARGS_ON_STACK f_cntl P_((int fh, long arg, int cmd));
  137. long ARGS_ON_STACK f_select P_((unsigned timeout, long *rfdp, long *wfdp, long *xfdp));
  138. long ARGS_ON_STACK f_midipipe P_((int pid, int in, int out));
  139.  
  140. /* dosmem.c */
  141. long ARGS_ON_STACK m_addalt P_((long start, long size));
  142. long _do_malloc P_((MMAP map, long size, int mode));
  143. long ARGS_ON_STACK m_xalloc P_((long size, int mode));
  144. long ARGS_ON_STACK m_alloc P_((long size));
  145. long ARGS_ON_STACK m_free P_((virtaddr block));
  146. long ARGS_ON_STACK m_shrink P_((int dummy, virtaddr block, long size));
  147. long ARGS_ON_STACK p_exec P_((int mode, void *ptr1, void *ptr2, void *ptr3));
  148. long terminate P_((int code, int que));
  149. long ARGS_ON_STACK p_term P_((int code));
  150. long ARGS_ON_STACK p_term0 P_((void));
  151. long ARGS_ON_STACK p_termres P_((long save, int code));
  152. long ARGS_ON_STACK p_waitpid P_((int pid, int nohang, long *rusage));
  153. long ARGS_ON_STACK p_wait3 P_((int nohang, long *rusage));
  154. long ARGS_ON_STACK p_wait P_((void));
  155. long ARGS_ON_STACK p_vfork P_((void));
  156. long ARGS_ON_STACK p_fork P_((void));
  157.  
  158. /* dossig.c */
  159. long ARGS_ON_STACK p_kill P_((int pid, int sig));
  160. long ARGS_ON_STACK p_sigaction P_((int sig, const struct sigaction *act,
  161.              struct sigaction *oact));
  162. long ARGS_ON_STACK p_signal P_((int sig, long handler));
  163. long ARGS_ON_STACK p_sigblock P_((ulong mask));
  164. long ARGS_ON_STACK p_sigsetmask P_((ulong mask));
  165. long ARGS_ON_STACK p_sigpending P_((void));
  166. long ARGS_ON_STACK p_sigpause P_((ulong mask));
  167.  
  168. /* filesys.c */
  169. void init_drive P_((int drv));
  170. void init_filesys P_((void));
  171. void load_filesys P_((void));
  172. void close_filesys P_((void));
  173. void ARGS_ON_STACK changedrv P_((unsigned drv));
  174. int disk_changed P_((int drv));
  175. long relpath2cookie
  176.     P_((fcookie *dir, const char *path, char *lastnm, fcookie *res, int depth));
  177. long path2cookie P_((const char *path, char *lastname, fcookie *res));
  178. void release_cookie P_((fcookie *fc));
  179. void dup_cookie P_((fcookie *new, fcookie *old));
  180. FILEPTR *new_fileptr P_((void))